#include <stdio.h>
#include <locale.h>
#include <unistd.h>
#include <signal.h>

void timeout(int sig)
{
        printf("Jj\n");
}

int main(int argc, const char *argv[])
{
        setlocale(LC_ALL, "");

        signal(SIGALRM, timeout);
        alarm(3);
        while( sleep(60)<0 );
        alarm(0);
        return 0;
}
